var arr = [{
    name:'tom',
    telephone:15643432349
},{
    name:'larry',
    telephone:13474343234
},{
    name:'fairy',
    telephone:18864343234
},{
    name:'terry',
    telephone:12214343234
}];
// 抽奖
// 随机数  [0-4)   [0,1)
/* console.log(Math.random() * 4);
console.log(Math.random() * 4);
console.log(Math.random() * 4);
console.log(Math.floor(Math.random() * 4)); */

var index = Math.floor(Math.random() * arr.length);
console.log(arr[index].telephone);



/* var arr2 = [];
for(var i=0;i<arr.length;i++){
    arr2.push(arr[i].telephone);
}
console.log(arr2); */
